home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
program
/
ptrplynt.lha
/
PTReplay.DOC
< prev
next >
Wrap
Text File
|
1995-09-19
|
3KB
|
123 lines
TABLE OF CONTENTS
PTReplay/--about--
PTReplay/--background--
PTReplay/--history--
PTReplay/--interface--
PTReplay/--about-- PTReplay/--about--
$RCSfile: PTReplay.mod $
$Revision: 1.3 $
$Date: 1995/09/19 17:14:11 $
$Author: phf $
Description: AmigaOberon interface to ptreplay.library.
Copyright: Copyright (c) 1995 by Peter Fröhlich [phf].
All rights reserved.
License: This file is freely distributable as long as no
money is made by distributing it. If you modify
it please let me know. You may distribute
modified versions as long as my original copyright
is respected and your modifications are clearly
marked as such. It may only be used in non-
commercial projects.
e-mail: p.froehlich@amc.cube.net
$Source: Users:Homes/phf/Programming/Development/PTReplay/REPOSITORY/PTR
eplay.mod $
PTReplay/--background-- PTReplay/--background--
PURPOSE
This module provides an AmigaOberon interface to the
ptreplay.library by Mattias Karlsson / BetaSoft.
NOTES
Remember to check "base # NIL" before making any calls
to the library.
SEE ALSO
ptreplay.doc
REFERENCES
Aminet: mus/play/PTReplay#?.lha
PTReplay/--history-- PTReplay/--history--
$Log: PTReplay.mod $
Revision 1.3 1995/09/19 17:14:11 phf
Corrected V6 functions, minor changes to Autodocs.
Revision 1.2 1995/09/15 18:18:21 phf
Adapted to ptreplay.library V6.
Revision 1.1 1995/08/30 06:11:25 phf
Initial revision
PTReplay/--interface-- PTReplay/--interface--
DEFINITION PTReplay;
IMPORT
E := Exec;
CONST
ptReplayName = "ptreplay.library";
TYPE
ModulePtr = UNTRACED POINTER TO Module;
Module = STRUCT
modName : E.LSTRPTR;
END;
TYPE
SampleName = ARRAY 22 OF CHAR;
SamplePtr = UNTRACED POINTER TO Sample;
Sample = STRUCT
name : SampleName;
length : E.UWORD;
fineTune : E.UBYTE;
volume : E.UBYTE;
repeat : E.UWORD;
repLen : E.UWORD;
END;
VAR
base : E.LibraryPtr;
PROCEDURE LoadModule(name: ARRAY OF CHAR): ModulePtr;
PROCEDURE UnloadModule(module: ModulePtr);
PROCEDURE Play(module: ModulePtr): LONGINT;
PROCEDURE Stop(module: ModulePtr): LONGINT;
PROCEDURE Pause(module: ModulePtr): LONGINT;
PROCEDURE Resume(module: ModulePtr): LONGINT;
PROCEDURE Fade(module: ModulePtr; speed: E.UBYTE);
PROCEDURE SetVolume(module: ModulePtr; speed: E.UBYTE);
PROCEDURE SongPos(module: ModulePtr): E.UBYTE;
PROCEDURE SongLen(module: ModulePtr): E.UBYTE;
PROCEDURE SongPattern(module: ModulePtr; position: E.UWORD): E.UBYTE;
PROCEDURE PatternPos(module: ModulePtr): E.UBYTE;
PROCEDURE PatternData(module: ModulePtr; pattern, row: E.UBYTE): E.APTR;
PROCEDURE InstallBits(module: ModulePtr; restart, nextPattern, nextRow, fade:
E.UBYTE);
PROCEDURE SetupMod(moduleFile: E.APTR): ModulePtr;
PROCEDURE FreeMod(module: ModulePtr);
PROCEDURE StartFade(module: ModulePtr; speed: E.UBYTE);
PROCEDURE OnChannel(module: ModulePtr; channels: LONGSET);
PROCEDURE OffChannel(module: ModulePtr; channels: LONGSET);
PROCEDURE SetPos(module: ModulePtr; position: E.UBYTE);
PROCEDURE SetPri(priority: E.BYTE);
PROCEDURE GetPri(): E.BYTE;
PROCEDURE GetChannel(): E.UBYTE;
PROCEDURE GetSample(module: ModulePtr; number: E.UBYTE): SamplePtr;
END PTReplay.